<!-- StudyWebBaiDuDoc_win.html -->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>文档</title>
		<link rel="stylesheet" href="../../css/CFNetPP_Base.css">
		<style type="text/css">
			html,body{
				background-color: black;
			}
		</style>
	</head>
	<body id="webBaiDuDocBody">
		<div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
	    <div class="base_navigation_bar base_style_color base_navigation_item_bar">
        	<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span id="nav_title">文档</span>
	    </div>
	</body>
	<script type="text/javascript" src="../../script/jquery.min.js"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript">
		var categoryIsShow = false;
		apiready = function(){
			setupFrame();
			setupNotifi();
			setupUI();
		}
		function setupUI(){
			$('#nav_title').text(api.pageParam.title);
			api.setScreenOrientation({orientation:"auto"});
		}
		function setupNotifi(){
			api.addEventListener({
			    name: 'keyback'
			}, function(ret, err) {
			    backClick();
			});
			api.addEventListener({
			    name: 'webBaiDuScreenChangeNotifi'
			}, function(ret, err) {
			    if (ret.value.isHScreen == true) {//横屏
			    	$('#webBaiDuDocBody').hide();
			    }else{
			    	$('#webBaiDuDocBody').show();
			    }
			});
		}
		function setupFrame(){
			var y = $('#BarAppearance').height() + $('.base_navigation_bar').height();
	        var h = api.winHeight - y;
			api.openFrame({
			    name: 'StudyWebBaiDuDoc',
			    url: 'StudyWebBaiDuDoc.html',
			    rect: {
			        x: 0,
			        y: y,
			        w: 'auto',
			        h: 'auto'
			    },
			    pageParam : api.pageParam,
			    bounces: false
			});
		}
		function backClick(){
			api.sendEvent({
			    name: 'StudyWebBaiDuDocBackNotifi',
			    extra: api.pageParam
			});
			api.setFullScreen({
			    fullScreen: false
			});
			api.setScreenOrientation({orientation:"portrait_up"});
			api.closeWin();
		}
	</script>
</html>